<?php
if (!defined ('TYPO3_MODE')) 	die ('Access denied.');


# pi1
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key';
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY.'_pi1'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi1/static/","persons");
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1'] ='pi_flexform';
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi1', 'FILE:EXT:'.$_EXTKEY . '/pi1/flexform.xml');

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi1_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi1/class.tx_univis2typo3_pi1_wizicon.php';


# pi2
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi2']='layout,select_key';
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi2', $_EXTKEY.'_pi2'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi2/static/","publications");
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi2'] ='pi_flexform';
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi2', 'FILE:EXT:'.$_EXTKEY . '/pi2/flexform.xml');

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi2_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi2/class.tx_univis2typo3_pi2_wizicon.php';


# pi3
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi3']='layout,select_key';
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi3', $_EXTKEY.'_pi3'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi3/static/","projects");
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi3'] ='pi_flexform';
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi3', 'FILE:EXT:'.$_EXTKEY . '/pi3/flexform.xml');

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi3_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi3/class.tx_univis2typo3_pi3_wizicon.php';


# pi4
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi4']='layout,select_key';
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi4', $_EXTKEY.'_pi4'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi4/static/","teachings");
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi4'] ='pi_flexform';
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi4', 'FILE:EXT:'.$_EXTKEY . '/pi4/flexform.xml');

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi4_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi4/class.tx_univis2typo3_pi4_wizicon.php';


# pi5
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi5']='layout,select_key';
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi5', $_EXTKEY.'_pi5'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi5/static/","theses");
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi5'] ='pi_flexform';
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi5', 'FILE:EXT:'.$_EXTKEY . '/pi5/flexform.xml');

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi5_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi5/class.tx_univis2typo3_pi5_wizicon.php';


# pi6
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi6']='layout,select_key';
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi6', $_EXTKEY.'_pi6'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi6/static/","footer");

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi6_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi6/class.tx_univis2typo3_pi6_wizicon.php';


# pi7
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi7', $_EXTKEY.'_pi7'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi7/static/","contact");
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi7'] ='pi_flexform';
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi7', 'FILE:EXT:'.$_EXTKEY . '/pi7/flexform.xml');

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi7_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi7/class.tx_univis2typo3_pi7_wizicon.php';


# pi8
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi8', $_EXTKEY.'_pi8'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi8/static/","personalpage");

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi8_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi8/class.tx_univis2typo3_pi8_wizicon.php';


# pi9
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi9', $_EXTKEY.'_pi9'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi9/static/","personal_publications");
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi9'] ='pi_flexform';
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi9', 'FILE:EXT:'.$_EXTKEY . '/pi9/flexform.xml');

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi9_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi9/class.tx_univis2typo3_pi9_wizicon.php';


# pi10
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi10', $_EXTKEY.'_pi10'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi10/static/","personallectures");

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi10_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi10/class.tx_univis2typo3_pi10_wizicon.php';


# pi11
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi11', $_EXTKEY.'_pi11'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi11/static/","personal_header");

# pi13
t3lib_extMgm::addPlugin(array('LLL:EXT:univis2typo3/locallang_db.xml:tt_content.list_type_pi13', $_EXTKEY.'_pi13'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi13/static/","research_heads");

if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_univis2typo3_pi13_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi13/class.tx_univis2typo3_pi13_wizicon.php';


if (TYPO3_MODE == 'BE')	{
	t3lib_extMgm::addModule('web','txunivis2typo3M1','',t3lib_extMgm::extPath($_EXTKEY).'mod1/');
	t3lib_extMgm::addModule('web','txunivis2typo3M2','',t3lib_extMgm::extPath($_EXTKEY).'mod2/');
}




$TCA["tx_u2t3_pub_type_order"] = array (
	"ctrl" => array (
		'title'     => 'LLL:EXT:univis2typo3/locallang_db.xml:tx_u2t3_pub_type_order',		
		'label'     => 'description',	
//		'tstamp'    => 'tstamp',
//		'crdate'    => 'crdate',
//		'cruser_id' => 'cruser_id',
//		'languageField'            => 'sys_language_uid',	
//		'transOrigPointerField'    => 'l18n_parent',	
//		'transOrigDiffSourceField' => 'l18n_diffsource',	
		'sortby' => 'sorting',	
//		'delete' => 'deleted',	
		'enablecolumns' => array (		
//			'disabled' => 'hidden',	
//			'starttime' => 'starttime',	
//			'endtime' => 'endtime',	
//			'fe_group' => 'fe_group',
		),
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
		'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_u2t3_pub_type_order.gif',
	),
	"feInterface" => array (
		"fe_admin_fieldList" => "sys_language_uid, l18n_parent, l18n_diffsource, hidden, starttime, endtime, fe_group, type, description, description_en",
	)
);

$TCA["tx_u2t3_job"] = array (
    "ctrl" => array (
        'title'     => 'LLL:EXT:univis2typo3/locallang_db.xml:tx_u2t3_job',
        'label'     => 'description',
//        'tstamp'    => 'tstamp',
//        'crdate'    => 'crdate',
//        'cruser_id' => 'cruser_id',
//        'default_sortby' => "ORDER BY crdate",
        'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
        'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_u2t3_job.gif',
    ),
    "feInterface" => array (
        "fe_admin_fieldList" => "parent_key, description, description_en, flags",
    )
);

$TCA["tx_u2t3_research"] = array (
    "ctrl" => array (
        'title'     => 'LLL:EXT:univis2typo3/locallang_db.xml:tx_u2t3_research',
        'label'     => 'key',
//        'tstamp'    => 'tstamp',
//        'crdate'    => 'crdate',
//        'cruser_id' => 'cruser_id',
//        'default_sortby' => "ORDER BY crdate",
        'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
        'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_research.gif',
    ),
    "feInterface" => array (
        "fe_admin_fieldList" => "key",
    )
);


$TCA["tx_u2t3_theses_type_order"] = array (
	"ctrl" => array (
		'title'     => 'LLL:EXT:univis2typo3/locallang_db.xml:tx_u2t3_theses_type_order',		
		'label'     => 'key',
//		'tstamp'    => 'tstamp',
//		'crdate'    => 'crdate',
//		'cruser_id' => 'cruser_id',
//		'default_sortby' => "ORDER BY crdate",
		'sortby' => 'sorting',
//		'delete' => 'deleted',
		'enablecolumns' => array (
//			'disabled' => 'hidden',
		),
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
		'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_u2t3_theses_type_order.gif',
	),
	"feInterface" => array (
		"fe_admin_fieldList" => "type, description, description_en",
	)
);

$TCA["tx_u2t3_theses_status_order"] = array (
	"ctrl" => array (
		'title'     => 'LLL:EXT:univis2typo3/locallang_db.xml:tx_u2t3_theses_status_order',		
		'label'     => 'key',
//		'tstamp'    => 'tstamp',
//		'crdate'    => 'crdate',
//		'cruser_id' => 'cruser_id',
//		'default_sortby' => "ORDER BY crdate",	
		'sortby' => 'sorting',
//		'delete' => 'deleted',
		'enablecolumns' => array (
//			'disabled' => 'hidden',
		),
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
		'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_u2t3_theses_status_order.gif',
	),
	"feInterface" => array (
		"fe_admin_fieldList" => "status, description, description_en",
	)
);

$tempColumns = Array (
	"tx_univis2typo3_person_key" => Array (	
		"exclude" => 1,	
		"label" => "LLL:EXT:univis2typo3/locallang_db.xml:be_users.tx_univis2typo3_person_key",		
		"config" => Array (
			"type" => "input",	
			"size" => "30",	
			"max" => "30",
		)
	),
	"tx_univis2typo3_vision" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:univis2typo3/locallang_db.xml:be_users.tx_univis2typo3_vision",		
		"config" => Array (
			"type" => "input",	
			"size" => "30",	
			"max" => "255",
		)
	),
	"tx_univis2typo3_vision_en" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:univis2typo3/locallang_db.xml:be_users.tx_univis2typo3_vision_en",		
		"config" => Array (
			"type" => "input",	
			"size" => "30",	
			"max" => "255",
		)
	),
	"tx_univis2typo3_image" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:univis2typo3/locallang_db.xml:be_users.tx_univis2typo3_image",		
		"config" => Array (
			"type" => "input",	
			"size" => "30",
		)
	),
);


t3lib_div::loadTCA("be_users");
t3lib_extMgm::addTCAcolumns("be_users",$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes("be_users","tx_univis2typo3_person_key;;;;1-1-1, tx_univis2typo3_vision, tx_univis2typo3_vision_en, tx_univis2typo3_image");

$tempColumns = Array (
	"tx_univis2typo3_person_key" => Array (	
		"exclude" => 1,		
		"label" => "LLL:EXT:univis2typo3/locallang_db.xml:sys_filemounts.tx_univis2typo3_person_key",
		"config" => Array (
			"type" => "input",	
			"size" => "30",
		)
	),
);


t3lib_div::loadTCA("sys_filemounts");
t3lib_extMgm::addTCAcolumns("sys_filemounts",$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes("sys_filemounts","tx_univis2typo3_person_key;;;;1-1-1");
?>
